package seeders

import (
	"hyper/app/Models"
	"hyper/supports/database"
)

func MenuSeeder() {

	_menu := []Models.Menu{
		{
			Pid:  0,
			Name: "控制台",
		},
		{
			Pid:  0,
			Name: "网站设置",
		},
		{
			Pid:  0,
			Name: "用户管理",
		},
		{
			Pid:  2,
			Name: "基本设置",
		},
		{
			Pid:  2,
			Name: "系統設置",
		},
		{
			Pid:  3,
			Name: "用户列表",
		},
	}

	// 添加菜单
	//if !Models.IsExist() {
	database.DB.Create(&_menu)
	//}
}
